import config from '@/config/'

import container from '@/components/frame/container'

//大用户实时监控
import jkIndex from '@/views/jiankong/jk-index'

//大用户档案管理
import daIndex from '@/views/dang-an/da-index'
import daAdd from '@/views/dang-an/addDangan'
import daDetails from '@/views/dang-an/da-details'
import daUpdate from '@/views/dang-an/da-update'

//统计分析
import hangye from '@/views/tongji/hangye'
import lishi from '@/views/tongji/lishi'
import quyu from '@/views/tongji/quyu'
import yichang from '@/views/tongji/yichang'
import details from '@/views/tongji/details'
import jiaofei from '@/views/tongji/jiaofei'

import login from '@/views/login'

const routers = [{
        path: '/',
        redirect: '/jiankong/jk-index',
        hiddenMenu: true
    },
    {
        path: '/login',
        component: login,
        hiddenMenu: true
    },
    {
        path: '/jiankong',
        name: '大用户实时监控',
        component: container,
        iconName: 'fa fa-diamond',
        redirect: '/jiankong/jk-index',
        children: [{
            name: '实时监控',
            path: '/jiankong/jk-index',
            hiddenMenu: false,
            iconName: 'fa fa-circle-o',
            component: jkIndex
        }]
    },
    {
        path: '/dangan',
        name: '大用户档案管理',
        component: container,
        iconName: 'fa fa-university',
        redirect: '/dangan/da-index',
        children: [{
                name: '档案管理',
                path: '/dangan/da-index',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: daIndex
            },
            {
                name: '新增档案',
                path: '/dangan/add',
                hiddenMenu: true,
                iconName: 'fa fa-circle-o',
                component: daAdd
            },
            {
                name: '档案详情',
                path: '/dangan/details',
                hiddenMenu: true,
                iconName: 'fa fa-circle-o',
                component: daDetails
            },
            {
                name: '档案修改',
                path: '/dangan/update',
                hiddenMenu: true,
                iconName: 'fa fa-circle-o',
                component: daUpdate
            }
        ]
    },
    {
        path: '/tongji',
        name: '统计分析',
        component: container,
        iconName: 'fa fa-th',
        redirect: '/tongji/lishi',
        children: [{
                name: '历史数据查询',
                path: '/tongji/lishi',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: lishi
            },
            {
                name: '区域用水情况统计',
                path: '/tongji/quyu',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: quyu
            },
            {
                name: '行业用水情况统计',
                path: '/tongji/hangye',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: hangye
            },
            {
                name: '异常情况统计',
                path: '/tongji/yichang',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: yichang
            },
            {
                name: '历史详情',
                path: '/tongji/details',
                hiddenMenu: true,
                iconName: 'fa fa-circle-o',
                component: details
            },
            {
                name: '缴费情况',
                path: '/tongji/jiaofei',
                hiddenMenu: true,
                iconName: 'fa fa-circle-o',
                component: jiaofei
            }
        ]
    }
]


export default routers;